package main.java.game.terrain;


import java.util.List;

import main.java.game.Game;
import main.java.game.combatant.Hero;

public class Forest extends Terrain {
	
	public Forest(String name) {
		super(name);
	}
	public void setTerrain(Game game){
		super.setTerrain(game);
		List<Hero> listH =game.getPlayer().getHeroes();
		for(Hero hero: listH){
			hero.setDefense(hero.getDefense()+1);
		}	

		System.out.println("All your heroes have 1 additional defense point!\n");
		
	}
	public void stopUsingTerrain(Game game){
		game.getDiscardPile().add(this);
		game.setTerrainPile(null);
		List<Hero> listH =game.getPlayer().getHeroes();
		for(Hero hero: listH){
			hero.setDefense(hero.getDefense()-1);
		}	
	}

}
